using System;
using System.Collections.Generic;
using System.Linq;
using Granite.Testing;
using Granite.Xaml.Internals;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Granite.Xaml.Tests.Helpers
{
	public class NavigateAssert : EventAssert<UriEventArgs>
	{
		public NavigateAssert(SimpleNavigator simpleNavigator)
			: base(simpleNavigator)
		{

			simpleNavigator.Navigated += SourceEventFired;
		}

		public EventPair<UriEventArgs> Expect(string expectedUri)
		{
			var result = base.Expect();
			Assert.AreEqual(expectedUri, result.EventArgs.Uri.ToString());
			return result;
		}
	}
}